export var Warn = React.createClass({
    getInitialState(){
        return {
            open: true,
        }
    },
    render(){
        const self = this;
        return <div className={'alert alert-warning  fade' + (self.state.open ? ' in' : '')}>
            <button type="button" className="close close-sm" data-dismiss="alert"><i onClick={
                ()=> {
                    self.setState({
                        open: false
                    })
                }
            } className="fa fa-times"></i>
            </button>
            {this.props.children}
        </div>
    }
});